from django.urls import path
from apps.questions.views import LabelListAPIView,NewQuestionsAPIView,MostQuestionsAPIView,WaitQuestionsAPIView,LabelsListAPIView,LabelUserListAPIView
from apps.questions.views import PostQuestionsAPIView,QuestionListAPIView,UsefulQuestionsAPIView,UNUsefulQuestionsAPIView,LabelsDetailsListAPIView
from apps.questions.views import ReplyQuestionAPIView,ReplyQuestionUsefulAPIView,ReplyQuestionUNUsefulAPIView,AttentionLabelAPIView,CancelAttentionLabelAPIView

urlpatterns = [
    path('labels/',LabelListAPIView.as_view()),

    path('labels/users/',LabelUserListAPIView.as_view()),

    path('labels/full/', LabelsListAPIView.as_view()),

    path('labels/<id>/', LabelsDetailsListAPIView.as_view()),

    path('questions/<id>/', QuestionListAPIView.as_view()),

    path('questions/<id>/label/new/',NewQuestionsAPIView.as_view()),

    path('questions/<id>/label/hot/',MostQuestionsAPIView.as_view()),

    path('questions/<id>/label/wait/',WaitQuestionsAPIView.as_view()),

    path('questions/',PostQuestionsAPIView.as_view()),

    path('questions/<id>/useful/',UsefulQuestionsAPIView.as_view()),

    path('questions/<id>/unuseful/',UNUsefulQuestionsAPIView.as_view()),

    path('reply/',ReplyQuestionAPIView.as_view()),

    path('reply/<id>/useful/',ReplyQuestionUsefulAPIView.as_view()),

    path('reply/<id>/unuseful/',ReplyQuestionUNUsefulAPIView.as_view()),

    path('labels/<id>/focusin/',AttentionLabelAPIView.as_view()),

    path('labels/<id>/focusout/',CancelAttentionLabelAPIView.as_view()),



]